DISCUSSION
The
ATSUGetFontFallbacks function obtains the fonts to employ and search order to use that you set in a previous set to the function
ATSUSetFontFallbacks. They can also reflect the default fallback mapping order if you did not call
ATUSetFontFallbacks.
The best way to use
ATSUGetFontFallbacks is to call it twice:
-
Pass NULL for the oFontIDs parameter and 0 for the other parameters. ATSUGetFontFallbacks returns the size of the font array in the oActualFallbacksCount parameter.
-
Allocate enough space for an array of the returned size, then call the function again, passing a pointer in the oFontIDs parameter; on return, the pointer references an array of fonts to be searched.